#!/usr/bin/env python
# coding=utf-8

import ConfigParser
from bosonnlp import BosonNLP


CONF = "config.ini"


class BosonAPI:
    def __init__(self):
        c = ConfigParser.RawConfigParser()
        c.read(CONF)
        self.token = c.get("boson", "token")
        self.nlp = BosonNLP(self.token)

    def keywords(self, sentence_list):
        return self.nlp.extract_keywords(sentence_list)
